package com.yishusmt.wechatapi.wechatdev.dto.response;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.yishusmt.wechatapi.wechatdev.dto.base.BaseArticles;
import com.yishusmt.wechatapi.wechatdev.dto.base.BaseWeChat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 图文消息回复
 *
 * @author zhangyi
 * @date 2018/8/29 9:39
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@XStreamAlias("xml")
public class ImgAndTextRes extends BaseWeChat {

    /**
     * 多条图文消息信息，默认第一个item为大图,注意，如果图文数超过8，则将会无响应
     */
    private BaseArticles Articles;

    /**
     * 图文消息个数，限制为8条以内
     */
    @XStreamAlias("ArticleCount")
    @Length(max = 7)
    private Integer ArticleCount;
}
